<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" import="java.util.*,com.stx.domain.*,com.stx.dao.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Insert title here</title>
    <link rel="stylesheet" href="./css/adminguanli.css">
</head>



<div class="contrainer">
    <div class="wrap">
        <div class="header">
            <p>学生管理</p>
        </div>
        <div class="mid">	        <!-- 上传excel文件模块 --> 
			<form action="insertStudentBySpring.do" enctype="multipart/form-data" method="post">
				<font style="font-size: 20px; font-family:'微软雅黑';line-height: 40px; padding-left: 15px">
						<span style="font-size:20px;display: inline;">Excel批量添加学生:</span>
						<input type="file" name = "excelFile" style="display: inline-block;width:180px;height:30px; vertical-align:middle;padding-top:9px;" />
						<input type="submit" value="导入" style="display: inline-block;height:20px;top:0px;"/>
				</font>
			</form>
        </div>
        
        <div class="content">
            <table class="table">
                <thead class="text-primary">
                    <th>序号</th>
                    <th>学号</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>院系</th>
                    <th>宿舍</th>
                    <th>操作</th>
                </thead>
                <tbody>
                <c:forEach items="${list}" var="student" varStatus="status">
                <tr>
                    <td>${status.index+1}</td>
                    <td>${student.no}</td>
                    <td>${student.name}</td>
                    <td>${student.sex}</td>
                    <td>${student.major}</td>
                    <td>${student.d}</td>
                    <td style="text-align: center">
                        <%-- <a href="updateStudent.do?name=${student.name}&major=${student.major}&no=${student.no}">修改</a> --%>
                        <a href="deleteStudentByA.do?no=${student.no}">删除</a></td>
                </tr>
            </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>

</body>
</html>